/**
 * 
 */
package spring.webapp.anmeldesystem.persistence.mapper;

import java.util.List;

import spring.webapp.anmeldesystem.entity.Admin;

/**
 * @author Songhua Cui
 *
 */
public interface AdminMapper {
	
	/**returns a selected {@link Admin} by email.
	 * @param email of admin.
	 * @return {@link Admin}
	 */
	Admin selectAdminByEmail(String email);
	
	/**
	 * 
	 * @param admin {@link Admin}.
	 */
	void insertAdmin(Admin admin);
	
	/**
	 * Returns all {@link Admin}s of this system.
	 * @return list of {@link Admin}s.
	 */
	List<Admin> selectAdmins();

	void updateAdmin(Admin admin);
}
